package shiyan2;

public abstract class Car {
    private String name;
    void drive(){
        System.out.println(this.name+"开始运行");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Car(String name) {
        this.name = name;
    }
}
